<template>
  <view class="historyDetailContainer">
      <web-view :src="outUrl"  :webview-styles="webviewStyles" ></web-view>
 
 
  </view>
</template>
<script>
   const app = getApp();
export default {
  data() {
    return {
 
      outUrl:'',
      webviewStyles:{
      width: {
						color: '#FF3333'
					}
        }

    };
  },
  methods: {
 
  },
  onReady() {


  },

  onLoad: function (option) { //option为object类型，会序列化上个页面传递的参数
    console.log('跳转页面~~',option)
    if(option.identity){
      this.outUrl = option.url+"?identity="+option.identity;
    }else if(option.code){
      this.outUrl = option.url+"?code="+option.code;
    }else if(option.id){
      this.outUrl = option.url+"?id="+option.id;
    }else if(option.ai){
      this.outUrl = option.url+"?serialNumber=HZ2023111411031FVHM&appId=hz3sfw2321232412123&phone="+app.globalData.phone+"&tabActive=1&background=linear-gradient(%23FFECD9%2C%23F2F4F5)";
    }else if(option.paint){
      this.outUrl = option.url+"?serialNumber=HZ20231118102502RMQ&appId=hz3sfw2321232412123&phone=%E6%89%8B%E6%9C%BA%E5%8F%B7&tabActive=2&background=linear-gradient(%23FFECD9%2C%23F2F4F5)";
    }else if(option.video){
      this.outUrl = option.url+"?serialNumber=HZ20231118102418YRY&appId=hz3sfw2321232412123&phone=15365100781&tabActive=4&background=linear-gradient(%23FFECD9%2C%23F2F4F5)";
    }else if(option.wid){
      this.outUrl = option.url+"?wid="+option.wid+"&qcode="+option.qcode;
    }else if(option.gongzhonghao1){
      this.outUrl = option.url+ '?__biz=MzkwOTQxODY2NQ==&mid=2247484221&idx=1&sn=4dfcea37d77e93315bc90247c8b4338c&chksm=c13a4afbf64dc3ed1a1e0398cae148e0599d505383ca7711ffe2de07219019156d7337fc7a62#rd';
    }
    else {
      this.outUrl = option.url;
    }
    
    console.log('跳转页面~~1111',this.outUrl)

 




  }

};

</script>

<style lang="scss">
 
 
 

 
 

 
</style>
